package com.zhihesj.anan.system.service.impl;

import com.zhihesj.anan.system.entity.UserAuths;
import com.zhihesj.anan.system.mapper.UserAuthsMapper;
import com.zhihesj.anan.system.service.UserAuthsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 * 用户权限表 服务实现类
 * </p>
 *
 * @author anan
 * @since 2020-07-06
 */
@Service
public class UserAuthsServiceImpl extends ServiceImpl<UserAuthsMapper, UserAuths> implements UserAuthsService {

    @Autowired
    private UserAuthsMapper userAuthsMapper;

    @Override
    public Map<String,Object> getRolesByIdentifier(String identifier) {
        return userAuthsMapper.getRolesByIdentifier(identifier);
    }
}
